package com.bkhc.umc.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.session.web.http.CookieSerializer;
import org.springframework.session.web.http.DefaultCookieSerializer;

@Configuration
public class SessionConfig {
    @Bean
    public CookieSerializer cookieSerializer(){
        DefaultCookieSerializer dcs = new DefaultCookieSerializer();
        dcs.setDomainName("baikehuicai.com");
        dcs.setCookieName("BKHCSESSIONID");
        dcs.setCookiePath("/");
        return dcs;
    }


}
